package com.hope.minio.controller;

import com.hope.minio.utils.MinIoUtil;

import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/")
public class TestController {
    @PostMapping(value = "/upload")
    public String upload(@RequestParam(value = "file") MultipartFile file) {
        System.out.println("1111111111111111111111111111111");
        String upload = MinIoUtil.upload("test", file);
        return upload;
    }
}
